import 'dart:convert';

import 'package:star_author/generated/json/base/json_field.dart';
import 'package:star_author/generated/json/push_msg_info_entity.g.dart';

@JsonSerializable()
class PushMsgInfoEntity {
  String? msgId;
  String? title;
  String? content;
  String? jumpPath;
  String? action;

  PushMsgInfoEntity();

  factory PushMsgInfoEntity.fromJson(Map<String, dynamic> json) =>
      $PushMsgInfoEntityFromJson(json);

  Map<String, dynamic> toJson() => $PushMsgInfoEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
